<template>
	<view class="report-container">

		<view class="report-section section02">
			<view class="title">利润表-季报</view>
			<!-- {{QI.lrbjb}} -->
			<view class="content" v-for="item of QI.lrbjb">
				<!-- {{item}} -->
				<view class="bottom">
					<view class="line" v-for="(td, index ) of com21[0]">
						<text class="desc">{{td[1]}}</text>
						<text class="info">{{item[td[0]]}}</text>
					</view>
					<!-- {{item.record}} -->
					<template v-for="(da) of item.record">
						<view class="line" style="margin-left: 30px;" v-for="(ss) of RI">
							<text class="desc">{{ss[1]}}</text>
							<text class="info" style="margin-right: 30px;">{{da[ss[0]]}}</text>
						</view>
					</template>
					<!-- <view class="line" v-for="(td, index ) of com21[0]">
						<template v-if="index < 4">
							<text class="desc">{{td[1]}}</text>
							<text class="info">{{item[td[0]]}}</text>
						</template>
						<template v-else v-for="(ss) of RI">
							
								<text class="desc">{{td[1]}}</text>
								<text class="info">{{item.record[td[0]]}}</text>
						</template>
					</view> -->
				</view>
			</view>
		</view>
		<!-- 		<view class="report-section section02">
			<view class="title">销售额</view>
			{{QI.cwzbList}}
			<view class="content" v-for="item of QI.cwzbList">
				<view class=" bottom">
					<view class="line" v-for="td of com21[0]">
						<text class="desc">{{td[1]}}</text>
						<text class="info">{{item[td[0]]}}</text>
					</view>
				</view>
			</view>
		</view> -->

		<view class="report-section section02">
			<view class="title">资产负债表-年报</view>
			<!-- {{QI.zcfzb}} -->
			<view class="content" v-for="item of QI.cwzbList">
				<view class=" bottom">
					<view class="line" v-for="td of com21[1]">
						<text class="desc">{{td[1]}}</text>
						<text class="info">{{item[td[0]]}}</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		com21
	} from '@/utils/poster.js'
	export default {
		name: "qy-swsj",
		props: {
			QI: {
				required: true,
				type: Object
			}
		},
		data() {
			return {
				com21,
				RI: [
					["qms", "期末数"],
					["qcye", "期初余额"],
					["bnljs", "本年累计数"],
					["sqje", "上期金额"],
					["xh", "序号"],
					["xm", "项目名称"]
				]
			}
		}
	}
</script>

<style lang="scss">
	.report-container {
		scroll-behavior: smooth;
		height: 100%;
		background: url("@/static/images/bg.png") no-repeat 0 0, #F5F6FC;

		padding: 100rpx 10rpx;
L
		.report-section {
			margin-top: 10rpx;
			width: 100%;
			min-height: 200rpx;
			background: url("@/static/images/other/section-bg.png") no-repeat -28rpx 0;
			background-size: 100% auto;
			background-color: #f0f0f0;
		}
		.section02 {
			padding-bottom: 24rpx;
			box-sizing: border-box;
			background-color: #fff;
			border-radius: 16rpx;
			padding: 10rpx 30rpx;
			.content {
				.bottom {
					padding-top: 30rpx;
					.line {
						width: 100%;
						// height: 40rpx;
						display: flex;
						align-items: center;
						font-size: 26rpx;
						justify-content: space-between;
						.desc {
							color: #94949C;
						}
						.info {
							max-width: 300rpx;
							color: #3D3D41;
							word-wrap: break-word;
							text-align: right;
						}
					}
				}
			}
		}
	}
</style>